const SSU = new SpeechSynthesisUtterance() //  '工厂扫描通过！'

if (!window.SpeechSynthesisUtterance){
  console.warn('不支持当前的浏览器,请下载最新的chrome浏览器');
}

function speakText(str) {
  SSU.text = str
  window.speechSynthesis.speak(SSU)
}

export { speakText }
